<template>
<div class="call" v-show="showFlag">
    <div class="phone">
        <p class="phoneTitle"></p>
        <p class="phoneNumber">您将退出本次登录,是否确认?</p>
        <div class="phoneBtn">
            <div class="btn" @click="cancelPhone"><span>点错了</span></div>
            <div class="btn btn1" @click="callPhone"><span>确认退出</span></div>
        </div>
    </div>
</div>
</template>

<script>
// import {
//     shoppDeleteCart
// } from '@/api/index'
export default {
    props: {
        showFlag: {
            type: Boolean,
            default: false
        },
    },
    data() {
        return {
            isShow: true,
        }
    },
    mounted() {

    },
    methods: {
        backUp() {
            this.$router.go(-1);
            // 返回首页
            //  this.$router.push("/");
        },
        cancelPhone() {
            // this.showFlag= false;
            this.$emit("showCancelLogin", 1)
        },
        callPhone() {
            this.$emit("showCancelLogin", 2)
        }
    },
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->

<style scoped>
.call {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* opacity:0.37920000000000004; */
    z-index: 990;
    overflow: hidden;
    position: fixed;
    top: 0;
}

.phone {
    width: 81.86vw;
    padding: 1.6vw 4.26vw 0;
    box-sizing: border-box;
    background-color: white;
    border-radius: 0.8vw;
    margin: 0 auto;
    overflow: hidden;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -70%);
    color: #333333;
}

.phoneTitle {
    font-size: 4vw;
}

.phoneNumber {
    font-size: 4.67vw;
    font-family: PingFangSC-Medium, PingFangSC;
    font-weight: 400;
    text-align: center;
    padding: 3.06vw 0 3.33vw;

    color: #2E2E2E;
    border-bottom: 1px solid #E0E0E0;
}

.phoneBtn {
    display: flex;
    justify-content: space-between;
}

.phoneBtn .btn {
    width: 50%;
    height: 10.66vw;
    line-height: 10.66vw;
    color: #2AB32F;
    font-size: 4.26vw;
    text-align: center;
    vertical-align: middle;
    margin: 1vw 0;
}

.btn img {
    width: 5.06vw;
    height: 5.33vw;
    vertical-align: middle;
    margin-right: 3.2vw;
}

.phoneBtn .btn1,
a {
    color: #191919;
    border-left: 1px solid #D9D9D9;
}
</style>
